#define _CRT_SECURE_NO_WARNINGS
#define BOOST_TEST_MODULE gomoku
#include <boost/test/unit_test.hpp>
#include "test.h"

BOOST_AUTO_TEST_CASE(my_test)
{

	Board::initThreatData();
	
	BOOST_CHECK(testFourBlockDiagonal2CurrentAtFourth());
	BOOST_CHECK(testFourBlockDiagonal2CurrentAtThird());
	BOOST_CHECK(testFourBlockDiagonal2CurrentAtSecond());
	BOOST_CHECK(testFourBlockDiagonal2CurrentAtFirst());
	BOOST_CHECK(testGetValue1());
	BOOST_CHECK(testGetValue2());
	BOOST_CHECK(testGetValueDiagonal2Left());
	BOOST_CHECK(testGetValueDiagonal2Right());
	BOOST_CHECK(testGetValueDiagonal1Left());
	BOOST_CHECK(testGetValueDiagonal1Right());
	BOOST_CHECK(testOpenThreeHorizontalCurrentAtFirst());
	BOOST_CHECK(testOpenThreeHorizontalCurrentAtSecond());
	BOOST_CHECK(testOpenThreeHorizontalCurrentAtThird());
	BOOST_CHECK(testFourOpenDiagonal1CurrentAtFirst());
	BOOST_CHECK(testFourOpenDiagonal1CurrentAtSecond());
	BOOST_CHECK(testFourOpenDiagonal1CurrentAtThird());
	BOOST_CHECK(testFourOpenDiagonal1CurrentAtFourth());
	BOOST_CHECK(testFive());
	BOOST_CHECK(testThreatSearch1());
	BOOST_CHECK(testThreatSearch2());
	BOOST_CHECK(testThreatSearch3());
	BOOST_CHECK(testThreatSearch4());
	BOOST_CHECK(testWin());
	Board::clearThreatData();
	//system("pause");
}
